package com.gjy.zk.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-09-29 18:02:49
 */
@Configuration
public class SwaggerConfig {

    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("Zookeeper操作API")
                        .version("1.0.0")
                        .description("Zookeeper操作接口文档")
                        .contact(new Contact()
                                .name("Developer")
                                .email("developer@example.com")));
    }

}
